package com.vito.dcs.asphalt.asphaltAlarm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.base.model.DataGrid;
import com.vito.dcs.asphalt.asphaltAlarm.dao.AsphaltAlarmMapper;
import com.vito.dcs.asphalt.asphaltAlarm.model.AsphaltAlarmModel;
import com.vito.dcs.asphalt.asphaltAlarm.service.AsphaltAlarmService;

/**
 * 报警监控
 * @author lyhao
 *
 */
@Service
public class AsphaltAlarmServiceImpl implements AsphaltAlarmService {
	
	@Autowired
	private AsphaltAlarmMapper asphaltAlarmMapper;
	
	@Override
	public DataGrid<AsphaltAlarmModel> queryAsphaltAlarmByPage(AsphaltAlarmModel asphaltAlarmModel){
		DataGrid<AsphaltAlarmModel> dg = new DataGrid<AsphaltAlarmModel>();
		dg.setRows(asphaltAlarmMapper.queryAsphaltAlarmByPage(asphaltAlarmModel));
		dg.setTotal(asphaltAlarmModel.getTotal());
		return dg;
	}

}